/* lesson 1 file */
import java.io.* ;
public class Adder {

    int _data=0;

    public Adder(int data) {
        _data=data;
    }

    public int execute(int parameter) {
        return parameter;
    }

    public String toString() {
        return "Adder "+_data;
    }

    public int getValue() {
        return _data;
    }

    public static void main(String args[]) {
        Adder plus=new Adder(4);
        System.out.println(plus.toString());
        int arg=2;
        int result=plus.execute(arg);
        System.out.println(plus.getValue()+" + "+arg+" = "+result);
    }
}

